package org.locker.domain.vo;

import org.locker.domain.DeviceGrid;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.locker.common.excel.annotation.ExcelDictFormat;
import org.locker.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 设备格子信息视图对象 lk_device_grid
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = DeviceGrid.class)
public class DeviceGridVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 格子ID
     */
    @ExcelProperty(value = "格子ID")
    private Long deviceGridId;

    /**
     * 场地ID
     */
    @ExcelProperty(value = "场地ID")
    private Long positionId;

    /**
     * 场地格子规格
     */
    @ExcelProperty(value = "场地格子规格")
    private String specCode;

    /**
     * 设备ID
     */
    @ExcelProperty(value = "设备ID")
    private Long deviceId;

    /**
     * 主设备编号
     */
    @ExcelProperty(value = "主设备编号")
    private String deviceNo;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * 编号
     */
    @ExcelProperty(value = "编号")
    private String number;

    /**
     * 串口编号
     */
    @ExcelProperty(value = "串口编号")
    private String serialNo;

    /**
     * 串口索引
     */
    @ExcelProperty(value = "串口索引")
    private String serialIndex;

    /**
     * 蓝牙编号
     */
    @ExcelProperty(value = "蓝牙编号")
    private String macNo;

    /**
     * 类型：common 常规,screen 屏幕使用,special 特殊用途
     */
    @ExcelProperty(value = "类型：common 常规,screen 屏幕使用,special 特殊用途")
    private String gridType;

    /**
     * 格子状态：locker 已占用,unlock 未使用
     */
    @ExcelProperty(value = "格子状态：locker 已占用,unlock 未使用", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "grid_status")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 设备名称
     */
    private String deviceName;
    /**
     * 设备地址
     */
    private String deviceLocation;
    /**
     * 设备类型
     */
    private String deviceType;
    /**
     * 场地名称
     */
    private String positionName;
    /**
     * 场地地址
     */
    private String positionLocation;

    /**
     * 押金
     */
    private BigDecimal depositAmount = BigDecimal.ZERO;

    /**
     * (最大)存储费
     */
    private BigDecimal maxAmount = BigDecimal.ZERO;

    /**
     * 单价金额
     */
    private BigDecimal unitPriceAmount = BigDecimal.ZERO;


    /**
     * 计费方式
     */
    private String BillingType = "free";


}
